package com.xjtu.chapter05.ex5_2;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/16 16:00
 */
public class Star {
    String name;
    int age;
    char sex;

    public Star(String name, int age, char sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    @Override
    public String toString() {
        return
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex
                ;
    }

    void show(){
        System.out.println("I am famous......");
    }
}
